<?php

namespace Drinkiit\BlogBundle\Entity;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Constraints\NotBlank;

use Doctrine\ORM\Mapping as ORM;

/**
 * Drinkiit\BlogBundle\Entity\Operations
 */
class Operations
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var integer $operation
     */
    private $operation;

    /**
     * @var date $date
     */
    private $date;

    /**
     * @var Drinkiit\UtilisateurBundle\Entity\UtilisateurApp
     */
    private $operation_utilisateur;

    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set operation
     *
     * @param integer $operation
     */
    public function setOperation($operation)
    {
        $this->operation = $operation;
    }

    /**
     * Get operation
     *
     * @return integer 
     */
    public function getOperation()
    {
        return $this->operation / 100;
    }

    /**
     * Set date
     *
     * @param date $date
     */
    public function setDate($date)
    {
        $this->date = $date;
    }

    /**
     * Get date
     *
     * @return date 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set operation_utilisateur
     *
     * @param Drinkiit\UtilisateurBundle\Entity\UtilisateurApp $operationUtilisateur
     */
    public function setOperationUtilisateur(\Drinkiit\UtilisateurBundle\Entity\UtilisateurApp $operationUtilisateur)
    {
        $this->operation_utilisateur = $operationUtilisateur;
    }

    /**
     * Get operation_utilisateur
     *
     * @return Drinkiit\UtilisateurBundle\Entity\UtilisateurApp 
     */
    public function getOperationUtilisateur()
    {
        return $this->operation_utilisateur;
    }
    /**
     * @var Drinkiit\BlogBundle\Entity\Commande
     */
    private $operation_commande;


    /**
     * Set operation_commande
     *
     * @param Drinkiit\BlogBundle\Entity\Commande $operationCommande
     */
    public function setOperationCommande(\Drinkiit\BlogBundle\Entity\Commande $operationCommande)
    {
        $this->operation_commande = $operationCommande;
    }

    /**
     * Get operation_commande
     *
     * @return Drinkiit\BlogBundle\Entity\Commande 
     */
    public function getOperationCommande()
    {
        return $this->operation_commande;
    }
}
